package cn.com.huzo.model.entities.master;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 仓库实体类
 *
 * @author 吴旭
 */
public class WareHouseEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = -1358074761605946550L;
    private Long WareHouseId;
    private String WareHouseNo;              // 仓库编号
    private String WareHouseName;            // 仓库名
    private String WareHouseAdress;          // 仓库地址
    private String Description;

    public Long getWareHouseId() {
        return WareHouseId;
    }

    public String getWareHouseNo() {
        return WareHouseNo;
    }

    public String getWareHouseName() {
        return WareHouseName;
    }

    public String getWareHouseAdress() {
        return WareHouseAdress;
    }

    public String getDescription() {
        return Description;
    }

    public void setWareHouseId(Long WareHouseId) {
        this.WareHouseId = WareHouseId;
    }

    public void setWareHouseNo(String WareHouseNo) {
        this.WareHouseNo = WareHouseNo;
    }

    public void setWareHouseName(String WareHouseName) {
        this.WareHouseName = WareHouseName;
    }

    public void setWareHouseAdress(String WareHouseAdress) {
        this.WareHouseAdress = WareHouseAdress;
    }

    public void setDescription(String Description) {
        this.Description = Description;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof WareHouseEntity)) {
            return false;
        }

        final WareHouseEntity that = (WareHouseEntity) o;

        return new EqualsBuilder()
                .append(this.getWareHouseId(), that.getWareHouseId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + this.getWareHouseId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
